<?php $this->load->view('admin/common/pageHead');?>
<?php $this->load->view('admin/common/pageHeader');?>
<div class="fLeft">
	<?php $this->load->view('admin/common/left_nav'); ?>
</div>
<div class="fRight" style="margin: 20px 80px 0px 0px">

	<table width="587" border="0" cellpadding="0" cellspacing="0"
		class="allbdr" valign="top">
		<tr>
			<td colspan="5" align="center"><input type="hidden" name="id"
				value="" /></td>
		</tr>
		<?php if (isset($msg)) { ?>
		<tr bgcolor="#3b63dd">
			<td colspan="10" align="center" class="fotter-color"
				style="color: red;"><b><?php echo $msg; ?> </b></td>
		</tr>
		<? } ?>
		<tr>
			<td colspan="5" align="center"><span class="forSesMsg"></span></td>
		</tr>
		<tr bgcolor="#3b63dd">
			<td colspan="5" align="center" class="fotter-color"><b>List of Pages</b>
			</td>
		</tr>
		<tr>
		
		
		<tr bgcolor="#3b63dd">
			<th width="143" align="center" class="fotter-color">Sr. No</th>
			<th width="334" align="left" class="fotter-color">Name</th>
			<!--<th width="152" align="center" class="fotter-color">Status</th>-->
			<th colspan="2" align="left" class="fotter-color">Action</th>
		</tr>
		<?php
	 if( isset($allCms) && !empty($allCms)){
			 foreach ($allCms as $temp => $pages){ ?>
		<tr>

			<td width="143" align="center" bgcolor=""><?=$temp+1; ?></td>
			<td width="334" align="left" bgcolor=""><?=$pages["title"];?></td>

			<td width="41" align="center" bgcolor=""><a
				href="/editCms/<?=$pages['cmsID']?>"
				onMouseOver="javascript:window.status='';return true;"> <img
					src="/public/images/edit.png" name="edit" border="0" value="Edit">
			</a>&nbsp; &nbsp;</td>
			<td width="67" align="center" bgcolor=""><a href="javascript:del()"
				onMouseOver="(window.status='Delete Album Details...'); return true"
				onMouseOut="(window.status=''); return true" Title="Delete User"></a>
			</td>
		</tr>
		<?}
}else {?>

		<tr>
			<td colspan='6' height='100' class='forText' align='center'>Record(s)
				not found.</td>
		</tr>
		<?}






		?>

		<!--<tr>
           <th align="right" class="tdclass" colspan="5"><input type="button" name="add" value="Add New" onClick="window.location='add_cms.php'"> </th>
        </tr> -->
	</table>


</div>

<div class="clr">
	<div>
		<br />

		<?php $this->load->view('admin/common/pageFooter');?>